<?php $this->load->helper('language'); ?>

<?php $i=0; foreach ($results as $result): ?>
	<li>
	<?php if ($result[lang('ut_result')] == lang('ut_passed')): ?>
		<div class="pas">

			<table class="pas" border="1">
				<tr>
					<td width="200">Unit Test for:</td><td width="200"><?php $temp=explode('->',$result[lang('ut_test_name')]);echo $temp[1]; ?></td>
				</tr>
				<tr>
					<td>Status:</td><td><?php echo strtoupper(lang('ut_passed')); ?></td>
				</tr>
				<tr>
					<td>Description:</td><td><?php if(!empty($messages[$i])) echo $messages[$i]; else echo "None"; ?></td>
				</tr>

			</table>
		</div>
		
	<?php else: ?>
		<div class="err">

			<table class="err" border="1">
				<tr>
					<td width="200">Unit Test for:</td><td width="200"><?php $temp=explode('->',$result[lang('ut_test_name')]);echo $temp[1]; ?></td>
				</tr>
				<tr>
					<td>Status:</td><td><?php echo strtoupper(lang('ut_failed')); ?></td>
				</tr>
				<tr>
					<td>Description:</td><td><?php if(!empty($messages[$i])) echo $messages[$i]; else echo "None"; ?></td>
				</tr>

			</table>
			
		</div>
	<?php endif; ?>
	</li>
<?php $i++; endforeach; ?>
